package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "question_option")
public class Option implements Serializable {
    private ObjectId id;//选项编号
    private ObjectId questionId;//问题编号
    private String context;//选项文本
    private Integer weight;//选项对应分值
}
